package com.cqc.manage.controller.admin;


import cn.hutool.json.JSON;
import cn.hutool.json.JSONUtil;
import com.cqc.manage.dto.JsonResultDto;
import com.cqc.manage.entity.Role;
import com.cqc.manage.service.Imp.user.UserConnRoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userConnroles")
@Api(tags = "role", description = "用户角色相关操作")
public class RoleConnUserController {

    @Autowired
    private UserConnRoleService userConnRoleService;

    /**
     * test
     *
     * @return
     */
    @ApiOperation(value = "userconnRole", notes = "test——userconnRole")
    @RequestMapping(
            value = "/test",
            method = RequestMethod.POST,
            produces = MediaType.APPLICATION_JSON_VALUE)
    public JSON addRole(@RequestBody Role role) {
        userConnRoleService.addUserConnRole();
        return null;
    }


}
